Skip to main content
Feedback

API Key object

The API Key object provides the capability of triggering actions, such as query, create, update, delete, or fetching applications without using the user interface.

Structure

note

You cannot update the key id for CREATE or UPDATE operations.

<ApiKey apiId=""    
applicationId=""
planId=""
deleted=""
enabled=""
environmentId=""
generatedAt=""
generatedDate=""
key=""> </ApiKey>
FieldTypeDescription
apiIdstringUsed for query operations to identify API Service or Proxy components.
applicationIdstringUsed to designate the application attached to this API.
planIdstringUsed for query operations to identify plans. The planId is an optional field that can be attached to an API key object. If a planId is provided, the API key will be created in an enabled state, allowing immediate access to the API. If no planId is provided, the API key will be in a pending state until a plan is attached. The planId ensures that the API key is associated with a specific plan, which is necessary to call the API.
contractIdstringUsed for query operations to identify contracts. The contractId is an existing field that can be used to associate an API key with a specific contract. While the contractId is still supported, the planId takes precedence if both are provided together. Users who currently use contractId can continue to do so, but it is recommended to transition to using planId for new implementations.
deletedbooleanUsed to identify a deleted API Key. Do not use this field as a filter in queries.
enabledbooleanUsed to designate an API Key as enabled or disabled. Do not use this field as a filter in queries.
environmentIdstringUsed in query operations to designate an environment.
generatedBystringUsed in query operation to identify the user who generated an API key.
generatedAtdatetimeUsed in query operations to designate the generation date of an API Key.
keystringUsed to designate the GUID for this API Key.

Supported operations

The API Key object is supported in the following operations:

GETQUERYCREATEUPDATEDELETE
✅ Supported✅ Supported✅ Supported✅ Supported✅ Supported

Implementation

Send an HTTP GET to:

https://api.boomi.com/apim/api/rest/v1/{accountId}/apiKey/id

where accountId is the Boomi API Management account that you are authenticating with and where id is the API Key object you are attempting to GET.

For a response, send the request with the following HTTP header:

Accept: application/json

Response:

{
"@type": "ApiKey",
"applicationId": "aa70d90f-6fab-4fd9-983e-a54fc02a9daf",
"key": "c269f372-ae85-495d-a10c-2fcbd07c9af6",
"environmentId": "f53f7a3b-4462-4cfb-9085-ed5c78004ab7",
"planId" : "eb66f0f6-471b-4054-8b71-a46ac663e687",
"apiId": "61ab0543-e95c-4c22-9b1d-0eefd6c23119",
"generatedBy": "tester@boomi.com",
"generatedAt": "2017-08-14T15:09:14Z",
"enabled": true,
"deleted": false
}
On this Page